package com.foreveross.project.usercenterserver.oauth2.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.foreveross.project.usercenterserver.oauth2.domain.UcAccount;
import com.foreveross.project.usercenterserver.oauth2.dto.AccountDto;
import com.foreveross.project.usercenterserver.oauth2.dto.AppDto;
import com.foreveross.project.usercenterserver.oauth2.dto.TenantDto;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yz
 * @since 2019-07-22
 */
public interface IUcAccountService extends IService<UcAccount> {


    /**
     * 新增用户
     */
    UcAccount createAccount(AccountDto accountDto);

    /**
     * 修改用户
     */

    UcAccount updateAccount(AccountDto accountDto);

    /**
     * 删除用户
     */
    void deleteAccount(String accountFkId);


    /**
     * 查找用户
     * @param accountFkId
     * @return
     */
    UcAccount findAccount(String accountFkId);



    IPage<AccountDto> queryForPage(Page<AccountDto> page, Map<String, Object> params);

}
